﻿using Newtonsoft.Json;
using SqlSugar;

namespace AnyLink.Domain.Entities.Auditing
{
    /// <summary>
    /// 审计对象
    /// </summary>
    public class AuditedObject : CreateAuditedObject,IUpdateBy<string>,IHasUpdateTime
    {
        /// <summary>
        /// 更新者
        /// </summary>
        [SugarColumn(ColumnDescription = "更新者",ColumnName ="update_by",ColumnDataType = "VARCHAR(64)",  IsNullable = true)]
        [JsonProperty(propertyName: "updateBy")]
        public virtual string UpdateBy { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnDescription = "更新时间",ColumnName ="update_time", IsNullable = true)]
        [JsonProperty(propertyName: "updateTime")]
        public virtual DateTime? UpdateTime { get; set; }
    }
}
